﻿using System;
/*
 * User: Ert
 * Date: 5/5/2012
 * Time: 10:02 AM 
 */

namespace ahbst
{
	/// <summary>
	/// This is inventory on hand of products.
	/// </summary>
	[Serializable]
	public class Inventory
	{
		/// <summary>
		/// Primary key for inventory. Used with Database to find inventory
		/// </summary>
		public int InventoryID { get; set; }
		/// <summary>
		/// Current on hand quantity of a product
		/// </summary>
		public int Quantity {get; set;}
		/// <summary>
		/// Linked ID with Product
		/// </summary>
		public Product product{get;set;}
		public decimal PurchasePrice { get; set; }
		public decimal SoldPrice { get; set; }
		public decimal Profit {get { return SoldPrice-PurchasePrice;}}
	}
}